/*  1:   */ package tt.dz.common;
/*  2:   */ 
/*  3:   */ public class CamelCaseUtil
/*  4:   */ {
/*  5:   */   private static final char UNDERLINE = '_';
/*  6:   */   
/*  7:   */   public static String ToCamelCase(String param)
/*  8:   */   {
/*  9:21 */     param = param.toLowerCase();
/* 10:22 */     if ((param == null) || ("".equals(param.trim()))) {
/* 11:23 */       return "";
/* 12:   */     }
/* 13:25 */     int len = param.length();
/* 14:26 */     StringBuilder sb = new StringBuilder(len);
/* 15:27 */     for (int i = 0; i < len; i++)
/* 16:   */     {
/* 17:28 */       char c = param.charAt(i);
/* 18:29 */       if (c == '_')
/* 19:   */       {
/* 20:30 */         i++;
/* 21:30 */         if (i < len) {
/* 22:31 */           sb.append(Character.toUpperCase(param.charAt(i)));
/* 23:   */         }
/* 24:   */       }
/* 25:   */       else
/* 26:   */       {
/* 27:34 */         sb.append(c);
/* 28:   */       }
/* 29:   */     }
/* 30:37 */     return sb.toString();
/* 31:   */   }
/* 32:   */ }


/* Location:           F:\work\pengyu\mainServer\WEB-INF\classes\
 * Qualified Name:     tt.dz.common.CamelCaseUtil
 * JD-Core Version:    0.7.0.1
 */